package cn.exrick.xboot.modules.transport.vo;

import com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderV3Result;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 公用交易记录表
 * </p>
 *
 * @author guojia
 * @since 2022-09-19
 */
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@ApiModel(value="DealRecordVo",description = "交易记录响应实体")
public class DealRecordVo {

    @ApiModelProperty(value = "交易流水id")
    private Long id;

    @ApiModelProperty(value = "交易流水号")
    private Long dealNumber;

    @ApiModelProperty(value = "交易类型 1 收入；2 支出")
    private Integer dealType;

    @ApiModelProperty(value = "交易金额")
    private Integer dealAmount;

    @ApiModelProperty(value = "交易时间")
    private LocalDateTime dealTime;

    @ApiModelProperty(value = "交易状态 0 待处理；1 已完成； 2 已取消")
    private Integer dealState;

    @ApiModelProperty(value = "单据类型 1 运单 ；2 仓点押金; ")
    private Integer orderType;

    @ApiModelProperty(value = "单据id")
    private Long orderId;

    @ApiModelProperty(value = "支付类型 1 微信；2 支付宝；3 银行转账；4 分账系统（此处待定）")
    private Integer paymentType;

    @ApiModelProperty(value = "对接支付方流水号")
    private String paymentNumber;

    @ApiModelProperty(value = "关联id，退款流水时绑定付款流水")
    private Long relevanceId;

    @ApiModelProperty(hidden = true,value = "删除标志,0：未删除  1：已删除")
    private Integer isDelete;

    @ApiModelProperty(value = "微信预支付请求信息")
    private WxPayUnifiedOrderV3Result.JsapiResult wechatPayInfo;

    @ApiModelProperty(value = "微信扫码付请求二维码信息")
    private String codeUrl;
}
